jwplayer("player").setup({
	autostart: 'false',
    bufferlength: '3',
    width: '445',
    height: '250',
    image: vp4.IMAGE,
	skin: '/_layouts/VPLink2014/Common/Skins/five.xml',
    primary: "flash",	
events: {
   onPlay: function() {      
         _paq.push(['setCustomVariable',1,"Boutton","Play","page"]);
		 _paq.push(['trackPageView']);
		 },
   onPause: function() {      
         _paq.push(['setCustomVariable',1,"Boutton","Pause","page"]);
		 },
    onQualityChange : function(qual){
	    var label=qual.levels[qual.currentQuality];
		_paq.push(['setCustomVariable',2,"Qualite",label.label,"page"]);
		_paq.push(['trackPageView']);
	    },
	onFullscreen : function() {      
		_paq.push(['setCustomVariable',1,"Boutton","Fullscreen","page"]);
		_paq.push(['trackPageView']);
		},
	onError : function(callback) {      		
		_paq.push(['setCustomVariable',3,"Etat",callback.message,"page"]);
		_paq.push(['trackPageView']);
		},
	onBuffer : function(callback) {      
		var label="Buffer :"+callback.oldstate+"->"+callback.newstate;		
		_paq.push(['setCustomVariable',3,"Etat",label,"page"]);
		_paq.push(['trackPageView']);
		},
    onVolume : function(callback) {      
		var label="Volume :"+callback.volume;		
		_paq.push(['setCustomVariable',1,"Boutton",label,"page"]);
		_paq.push(['trackPageView']);
		}		
    },		 
    playlist: [{
	    image: vp4.IMAGE,
		title: vp4.OSTER,
        sources: [
            {				
				file: "rtmp://S3PR-LIVS-WOW01:1935/vplink/_definst_/mp4:"+vp4.VIDEO				
			}			
		]
    }]
});
